import http from "./http";
const BASE_URL_PATH = "/rag/knowledgeDoc";
export default {
  docUploadUrl: `${BASE_URL_PATH}/upload`,

  getDocList(knowledgeSetId) {
    return http.get(`${BASE_URL_PATH}/list`, { params: { knowledgeSetId } });
  },
  deleteDocs(idList) {
    return http.post(`${BASE_URL_PATH}/multiDelete`, {
      data: JSON.stringify(idList),
    });
  },
  extractText(id) {
    return http.post(`${BASE_URL_PATH}/documentETL`, {
      data: id,
    });
  },
};
